fix(tests): restore whitelisted smoke job in quantum integration test#471
Conversation
run_autorun_job rejects non-whitelisted job names before status lookup; restore smoke as the test job name so list/dict status parsing is exercised. Co-authored-by: Bryan <bryan@users.noreply.github.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjust quantum integration test to use the whitelisted 'smoke' autorun job so the test exercises status parsing instead of failing job-name validation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
🟡 Coverage —
|
| Metric | Value |
|---|---|
| Total coverage | 65.3% |
▲ vs main |
+0.1% |
| Minimum threshold | 60% |
Updated on every push · 2026-06-20
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The test now hardcodes the whitelisted
"smoke"job name in multiple places; consider deriving the allowed job name(s) from the same source used byrun_autorun_job(or a shared constant/fixture) so that whitelist changes don’t silently desync from this test.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The test now hardcodes the whitelisted `"smoke"` job name in multiple places; consider deriving the allowed job name(s) from the same source used by `run_autorun_job` (or a shared constant/fixture) so that whitelist changes don’t silently desync from this test.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
🔐 CodeQL — Open Alerts on this PR
Copilot Autofix suggestions (if enabled) appear as inline review comments on the affected lines. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_ff725e8e-cf21-4c5c-999c-d89fe97a873d) |
Summary
Hourly repo health automation failed on
pre_commit_checkbecausetests/test_quantum_integration.pyused a non-whitelisted autorun job name (another).run_autorun_jobvalidates job names before reading status, so the test never reached the list/dict status parsing logic it was meant to exercise.Changes
test_run_autorun_job_reads_status_for_list_and_dict_shapesto use the whitelistedsmokejob name in parametrized payloads and assertions.Verification
pytest tests/test_quantum_integration.py— 2 passedCo-authored-by: Bryan bryan@users.noreply.github.com
Summary by Sourcery
Tests:
Note
Low Risk
Test-only fixture and assertion renames; no production or integration behavior changes.
Overview
Renames the autorun job used in
test_run_autorun_job_reads_status_for_list_and_dict_shapesfromanothertosmokein parametrized status payloads, therun_autorun_jobcall, and assertions.This aligns the test with
run_autorun_job’s allowed job whitelist so the case reaches list/dict status parsing instead of failing early on invalid job names (which brokepre_commit_checkin repo health automation).Reviewed by Cursor Bugbot for commit 633b851. Bugbot is set up for automated code reviews on this repo. Configure here.